using System;

public class Phone
{
    public string Brand { get; set; }
    public int Weight { get; set; }
    public string Camera { get; set; }
    public int Price { get; set; }
    
    public Phone(string brand, int weight, string camera, int price)
    {
        Brand = brand;
        Weight = weight;
        Camera = camera;
        Price = price;
    }
    
    public void PrintInfo()
    {
        Console.WriteLine("a.品牌(brand): " + Brand);
        Console.WriteLine("b.重量(weight): " + Weight + "g");
        Console.WriteLine("c.后置摄像头像素(camera): " + Camera);
        Console.WriteLine("d.价格(price): " + Price);
    }
}